package com.LachesismStorm.lachesism.member.controller;

import com.LachesismStorm.lachesism.core.common.response.ResponseResult;
import com.LachesismStorm.lachesism.member.service.UmsMemberService;
import com.LachesismStorm.lachesism.member.service.WebpageService;
import io.swagger.annotations.Api;
import io.swagger.models.auth.In;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.io.IOException;

/**
 * @Author lachesism
 * @Date 2025-03-09 18:56
 **/
@RestController
@RequestMapping("/web")
public class WebpageController {
    @Resource
    private WebpageService webpageService;

    @PostMapping("/getXLinks")
    public ResponseResult getXLinks() throws IOException {
        webpageService.getXLinks();
        return ResponseResult.success(null,"获取成功");
    }
    @PostMapping("/download")
    public ResponseResult download()  {
        webpageService.download();
        return ResponseResult.success(null,"下载成功");
    }
}
